<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>拒绝用户</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background-color: #f5f6fa;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            background-color: #ffffff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 600px;
            margin-top: 50px;
        }

        h1 {
            font-size: 26px;
            color: #2c3e50;
            text-align: center;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 16px;
            color: #555;
            margin-bottom: 8px;
        }

        .form-group textarea {
            width: 100%;
            padding: 12px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 5px;
            background-color: #f9f9f9;
            resize: vertical;
            min-height: 150px;
            transition: border-color 0.3s ease;
        }

        .form-group textarea:focus {
            border-color: #3498db;
            outline: none;
        }

        button {
            padding: 12px 25px;
            font-size: 18px;
            color: white;
            background-color: #e74c3c;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease;
            width: 100%;
        }

        button:hover {
            background-color: #c0392b;
            transform: translateY(-3px);
        }

        button:active {
            background-color: #e74c3c;
            transform: translateY(0);
        }

        .back-btn {
            margin-top: 20px;
            text-align: center;
        }

        .back-btn button {
            padding: 10px 20px;
            font-size: 16px;
            background-color: #f39c12;
            border: none;
            border-radius: 5px;
            color: white;
            cursor: pointer;
        }

        .back-btn button:hover {
            background-color: #e67e22;
        }

        .back-btn button:active {
            background-color: #d35400;
        }
    </style>
</head>
<body>

<div class="container">
    <h1>拒绝用户</h1>

    <!-- 拒绝用户表单 -->
    <form action="/admin/users/reject" method="POST">
        <input type="hidden" name="userId" value="${userId}" />

        <div class="form-group">
            <label for="rejectReason">拒绝理由:</label>
            <textarea id="rejectReason" name="rejectReason" required placeholder="请输入拒绝理由..."></textarea>
        </div>

        <div class="form-group">
            <button type="submit">提交</button>
        </div>
    </form>

    <!-- 返回按钮 -->
    <div class="back-btn">
        <a href="/admin/usermanagement">
            <button>返回用户管理</button>
        </a>
    </div>
</div>

</body>
</html>
